import request from "@/utils/request";

/*条件查询*/
export function findOutStocks(pageNun,pageSize,queryMap) {
    return request({
        url:'/business/out-stock/findOutStock',
        method:'post',
        params:{
            pageNun,
            pageSize
        },
        data:queryMap
    })
}

/*明细*/
export function getDetail(id,pageNun,pageSize) {
    return request({
        url:'/business/out-stock/getDetail',
        method:'get',
        params:{id,pageNun,pageSize}
    })

}

/*回收站*/
export  function recycle(id) {
    return request({
        url:"/business/out-stock/recycle",
        method:"get",
        params:{
            id
        }
    })
}
/*恢复*/
export  function recover(id) {
    return request({
        url:"/business/out-stock/recover",
        method:"get",
        params:{
            id
        }
    })
}
/*通过*/
export  function pass(id) {
    return request({
        url:"/business/out-stock/pass",
        method:"get",
        params:{
            id
        }
    })
}
/*删除*/
export  function deleteOutStocks(id) {
    return request({
        url:"/business/out-stock/delete",
        method:"delete",
        params:{
            id
        }
    })
}